﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace MM.Common.IRemoteDataBase
{
    [ServiceContract]
    public interface ITransactionService
    {
        // Methods
        [OperationContract]
        bool RemoteDBExecuteProcedure(ref string error, string procedure_name, ref OraParm[] parm);
        [OperationContract]
        int RemoteDBExecuteSql(ref string error, string command_text, OraParm[] parm, int nrow);
        [OperationContract]
        bool RemoteDBIsExistTransaction();
        [OperationContract]
        bool RemoteDBTransactionBegin(ref string error);
        [OperationContract]
        bool RemoteDBTransactionCommit(ref string error);
        [OperationContract]
        bool RemoteDBTransactionRollback(ref string error);
        [OperationContract]
        bool RemoteSetRecordParameter(string table_order, int parm_len, long transaction_id);
        [OperationContract]
        bool RemoteSetRegisterCode(ref string error, string rcode);
    }
}
